package com.ym521.facecheck.core

import android.graphics.Bitmap
import androidx.camera.core.ImageProxy
import com.ym521.facecheck.bean.ImageHandlerType

/**
 *@author Ym
 *E-mail: 2435970206@qq.com
 *createTime:2024/6/30
 *explain:
 * 需要图片队列引擎
 */
internal interface IImageQueueEngine {

    fun initQueueEngine(faceCheck: IFaceCheck):IImageQueueEngine
    /**
     * 添加图片队列
     */
    fun putImage(image: Bitmap)

    /**
     * 兼容 cameraX
     */
    fun putImage(image: ImageProxy)

    /**
     * 开始运行
     */
    fun startRunning(type: ImageHandlerType = ImageHandlerType.IMAGE_HANDLER_2):IImageQueueEngine


    /**
     * 释放
     */
    fun release()
}